package com.itheima.reggie.service;

import com.github.pagehelper.PageInfo;
import com.itheima.reggie.entity.Employee;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface EmployeeService {
    Employee selectByUsername(Employee employee);

    void save(Employee employee);

    PageInfo<Employee> selectByPage(int page, int pageSize, String name);

    void update(Employee employee);

    Employee selectAllById(Integer id);
}
